package com.rzjm.api.dao;

import com.rzjm.api.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface UserDao extends BaseDao<User>{

    int updateUserSignDays(@Param("id") Integer id, @Param("sign_days") Integer sign_days, @Param("last_sign_date") String last_sign_date);

    List<User> selectByShopId(@Param("shop_id") Integer shop_id, @Param("user_id") Integer user_id,
                                 @Param("offset") Integer offset, @Param("pagesize") Integer pagesize,
                                 @Param("begin_time") Date begin_time, @Param("end_time") Date end_time);
}